﻿@model IPagedList<Admin.Models.TblHotel>
@using PagedList;
@using PagedList.Mvc;
@{
    ViewBag.Title = ViewBag.TotalHotel;
    Layout = "~/Views/Shared/_layout.cshtml";
}
    <div class="background_title">
 @Html.MvcSiteMap().SiteMapPath()
    </div>
    <div class="contentForm" id="contentForm">
        <h2>Kết quả cho từ khóa: <span class="keyword">@Session["destination"]</span></h2>
        <p>@ViewBag.TotalHotel</p>
        <section class="controlGrid">
            <ul>
                <li>
                    <a href="#;" class="actived">Giá (Từ thấp tới cao)</a>
                </li>
                <li>
                    <a href="#;">Giá (Từ cao xuống thấp)</a>
                </li>
                <li>
                    <a href="#;">Cấp độ sao(1..5)</a>
                </li>
                <li>
                    <a href="#;">Cấp độ sao(5..1)</a>
                </li>
            </ul>
        </section>
        @foreach (var item in Model)
        {
            <div class="row Item">
                <div class="three columns">
                    <img src="@Url.Content(item.LinkImage)" title="@item.HotelName">
                </div>
                <div class="nine columns">
                    <header class="row">
                        <div class="ten columns">
                            @item.HotelName
                            <a href="javascript:;"><i class="icon-location"></i>bản đồ</a>
                            <span class="DanhGia">
                                <img src="~/Content/images/rate.png" style="border: none; padding: 0; margin: 5px 5px 5px 0px; vertical-align: -7px">- 183 đánh giá</span>
                            <span class="Address">
                                <i class="icon-address"></i>@item.StreetAddress
                            </span>
                        </div>
                        <div class="two columns">
                            <span class="mark">9.5</span><span class="markSum">/10</span>
                        </div>
                    </header>
                    <article>
                        @item.Summary
                    </article>
                    <span class="Cost">450.000 vnđ</span>
                    <a href="@Url.Action("Details",  new { id = item.HotelID})" class="btnViewDetails">Chi tiết<i class="icon-right-circled"></i></a>

                </div>
            </div>
        }
        <div class="row Paging">
            @Html.PagedListPager(Model, PageSize => Url.Action("Index",new { PageSize }),
            new PagedListRenderOptions()
            {
               DisplayLinkToPreviousPage  = PagedListDisplayMode.Always,
               DisplayLinkToNextPage = PagedListDisplayMode.Always,
                LinkToPreviousPageFormat = "<i class='icon-left-thin'></i>",
                LinkToNextPageFormat = "<i class='icon-right-thin'></i>",
                
            })
        </div>
    </div>
